const axios = require('axios').default
const instance = axios.create({
	baseURL: 'https://master.api.dahuangf.com/',
	timeout: 60000,
})
module.exports = {
	get(url, params, req) {
		return instance.request({
			url,
			method: 'get', // 默认值
			params: req.query,
			headers: {
				token: req.get('token') || '',
			},
		})
	},
	post() {},
}
